#!/bin/bash

sum=0
for i in "$@"
do
    sum=$((sum + i))
done
echo -n "$1"
shift
for i in "$@"
do
    echo -n " + $i"
done
echo -n " = $sum"
echo